From 78eed7d0445b3d8d16beb526128544b12e928343 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 4 Dec 2009 07:00:25 +0000 Subject: [PATCH] xend: Fix parameters to PyArg_ParseTupleAndKeywords() The kwd_list parameter PyArg_ParseTupleAndKeywords() must be a NULL-terminated list. Signed-off-by: KUWAMURA Shin'ya --- tools/python/xen/lowlevel/xc/xc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index 7ad2871765..83096048cd 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -406,7 +406,7 @@ static PyObject *pyxc_getBitSize(XcObject *self, PyObject *info_type; char *image = NULL, *cmdline = "", *features = NULL; int type = 0; - static char *kwd_list[] = { "image", "cmdline", "features"}; + static char *kwd_list[] = { "image", "cmdline", "features", NULL }; if ( !PyArg_ParseTupleAndKeywords(args, kwds, "sss", kwd_list, &image, &cmdline, &features) ) return NULL; @@ -1642,7 +1642,7 @@ static PyObject *pyxc_tmem_shared_auth(XcObject *self, char *uuid_str; int rc; - static char *kwd_list[] = { "cli_id", "uuid_str", "arg1" }; + static char *kwd_list[] = { "cli_id", "uuid_str", "arg1", NULL }; if ( !PyArg_ParseTupleAndKeywords(args, kwds, "isi", kwd_list, &cli_id, &uuid_str, &arg1) ) -- 2.30.2